<?php

namespace MythTest\Data\Model\Mapper\Mocks;

use Myth\Data\Model\DbTable;
use Myth\Data\Model\Mapper;

class Map implements Mapper\IMap
{
    protected $_tables = array();
    
    public function addTable(Myth\Data\Model\DbTable\Table $table, $alias = '')
    {
        //TODO: check for alias ambiguity?
        $name = $table->getName();
        $this->_tables[$name]['DbTable'] = $table;
        $this->_tables[$name]['alias'] = $alias;
    }
} 